from django.shortcuts import render_to_response, Http404
from django.template import RequestContext
from django.http import HttpResponseRedirect

from models import *
from apps.management import Management

def index(request, course=None):
    return render_to_response('news/index.html', {'announcements':  GetAnnouncements(course),
                'events':  GetEvents(course), 'pastevents':GetPastEvents(course), 'AddAnnouncement':False}, context_instance=RequestContext(request))